// service/impl/UserServiceImpl_wxt.java
package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.mapper.UserMapper_wxt;
import com.scuec.groupfive.service.UserService_wxt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl_wxt implements UserService_wxt {

    @Autowired
    private UserMapper_wxt userMapper;

    @Override
    public Long getTotalUserCount() {
        return userMapper.countTotalUsers();
    }

    @Override
    public Long getUsersByCustomTimeRange(String type, String value) {
        // 可在此添加参数格式验证逻辑（例如正则匹配）
        return userMapper.countByCustomTimeRange(type, value);
    }
}